package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 问题对象 p_question
 *
 * @author ruoyi
 * @date 2022-07-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("p_question")
public class PQuestion extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 问题
     */
    @ApiModelProperty(value = "问题")
    private String msg;
    /**
     * 咨询类别id
     */
    private Long typeId;
    /**
     * 发布者
     */
    private Long userId;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;
    /**
     * 审核状态 0 审核中 1 通过 2 未通过
     */
    @ApiModelProperty(value = "审核状态 0 审核中 1 通过 2 未通过")
    private String checkFlag;
    /**
     * 阅读次数
     */
    @ApiModelProperty(value = "阅读次数")
    private Long readNum;
    /**
     * 评论次数
     */
    @ApiModelProperty(value = "评论次数")
    private Long askNum;

    @TableField(exist = false)
    @ApiModelProperty(value = "发布人名称")
    private String userName;

    @TableField(exist = false)
    @ApiModelProperty(value = "头像")
    private String avatar;

    @TableField(exist = false)
    @ApiModelProperty(value = "类型")
    private String typeTitle;

    @ApiModelProperty(value = "标签类型")
    private String tagType;

    @ApiModelProperty(value = "标签名称")
    @TableField(exist = false)
    private String tagShow;

    @ApiModelProperty(value = "是否精选 0 否 1 是")
    private String isWell;

    @ApiModelProperty(value = "是否匿名 0 否 1 是")
    private String isAnonymous;

    @ApiModelProperty(value = "是否专家可见 0 否 1 是")
    private String expertsVisible;
}
